<%@ include file="/common/taglibs.jsp"%>
<head>
    <title><fmt:message key="projectDetail.title"/></title>
    <meta name="menu" content="PersonMenu"/>
</head>



<div class="col-sm-3">
    <h2><fmt:message key='projectDetail.heading'/></h2>
</div>

 

<div class="col-sm-7">
     <form:errors path="*" cssClass="alert alert-danger alert-dismissable" element="div"/>
     <form:form commandName="projectUrl" method="post" action="projectUrlForm" id="projectUrlForm" cssClass="well">
     	<form:hidden path="id"/>
       	<spring:bind path="projectUrl.project.id">
       	<div class="form-group${(not empty status.errorMessage) ? ' has-error' : ''}">       		
       	</spring:bind>
       		<appfuse:label styleClass="control-label" key="projectUrl.id" />
       		<form:select path="project.id" items="${listOfProjects}" cssClass="form-control"/>
        	<form:errors path="project.id" cssClass="help-inline"/>
        	
        </div>
        	
        <spring:bind path="projectUrl.instanceName">
       	<div class="form-group${(not empty status.errorMessage) ? ' has-error' : ''}">       		
       	</spring:bind>
       		<appfuse:label styleClass="control-label" key="projectUrl.instanceName" />
       		<form:input path="instanceName" id="instanceName" maxlength="50" autofocus="true" cssClass="form-control"/>
        	<form:errors path="instanceName" cssClass="help-inline"/>
        </div>
        
         <spring:bind path="projectUrl.url">
       	<div class="form-group${(not empty status.errorMessage) ? ' has-error' : ''}">       		
       	</spring:bind>
       		<appfuse:label styleClass="control-label" key="projectUrl.url" />
       		<form:input path="url" id="url" maxlength="50" autofocus="true" cssClass="form-control"/>
        	<form:errors path="url" cssClass="help-inline"/>
        </div>
        
         <spring:bind path="projectUrl.alternateUrl">
       	<div class="form-group${(not empty status.errorMessage) ? ' has-error' : ''}">       		
       	</spring:bind>
       		<appfuse:label styleClass="control-label" key="projectUrl.alternateUrl" />
       		<form:input path="alternateUrl" id="alternateUrl" maxlength="50" autofocus="true" cssClass="form-control"/>
        	<form:errors path="alternateUrl" cssClass="help-inline"/>
        </div>
        
         <spring:bind path="projectUrl.userId">
       	<div class="form-group${(not empty status.errorMessage) ? ' has-error' : ''}">       		
       	</spring:bind>
       		<appfuse:label styleClass="control-label" key="projectUrl.userId" />
       		<form:input path="userId" id="userId" maxlength="50" autofocus="true" cssClass="form-control"/>
        	<form:errors path="userId" cssClass="help-inline"/>
        </div>
        
         <spring:bind path="projectUrl.password">
       	<div class="form-group${(not empty status.errorMessage) ? ' has-error' : ''}">       		
       	</spring:bind>
       		<appfuse:label styleClass="control-label" key="projectUrl.password" />
       		<form:input path="password" id="password" maxlength="50" autofocus="true" cssClass="form-control"/>
        	<form:errors path="password" cssClass="help-inline"/>
        </div>
        
        
        <spring:bind path="projectUrl.comment">
       	<div class="form-group${(not empty status.errorMessage) ? ' has-error' : ''}">       		
       	</spring:bind>
       		<appfuse:label styleClass="control-label" key="projectUrl.comment" />
       		<form:textarea path="comment" id="comment" rows="3" cols="20"  maxlength="50" cssClass="form-control"/>
        	<form:errors path="comment" cssClass="help-inline"/>
        </div>
        
        <div class="form-group form-actions">
	        <button type="submit" class="btn btn-primary" name="save" onclick="bCancel=false">
		        <i class="icon-ok icon-white"></i> <fmt:message key="button.save"/>
	        </button>
	
	        <c:if test="${not empty projectUrl.id}">
	          <button type="submit" class="btn btn-default" name="delete" onclick="bCancel=true;return confirmMessage(msgDelConfirm)">
	              <i class="icon-trash"></i> <fmt:message key="button.delete"/>
	          </button>
	        </c:if>
	
	        <button type="submit" class="btn btn-default" name="cancel" onclick="bCancel=true">
	            <i class="icon-remove"></i> <fmt:message key="button.cancel"/>
	        </button>
	    </div>
        
      </form:form>
      
     
</div>

 

<v:javascript formName="project" cdata="false" dynamicJavascript="true" staticJavascript="false"/>

<script type="text/javascript" src="<c:url value='/scripts/validator.jsp'/>"></script>